<?php
/**
 *  商品每日卖的数量统计
 */

namespace App\Models\MainDB;

use App\Enums\MallEnum;
use Illuminate\Database\Eloquent\Model;

class MallStat extends Model
{

    protected $table = 'ln_mall_buy_stat';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名


    public $timestamps = false;

    public function mallCategories()
    {
        return $this->hasOne(MallCategories::class, 'id', 'cate_id');
    }
}